export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface RoleData {
  id?: number | string
  roleName: string
  remark: string
  createTime?: string
  updateTime?: string
}

export interface RoleListResponseData extends ResponseData {
  data: {
    records: RoleData[]
    total: number
    size: number
    current: number
    pages: number
    searchCount: boolean
  }
}

export interface PermissionData {
  id: number
  label: string
  children: PermissionData[]
  code: string
  level: number
  name: string
  pid: number
  select: boolean
  toCode: string
  type: number
}

export interface PermissionListResponseData extends ResponseData {
  data: PermissionData[]
}

export interface RolePermissionData {
  roleId: number
  permissionId: number[]
}
